import request from '@/utils/request'

// 查询凭证字列表
export function listVoucher_word(query) {
  return request({
    url: '/voucher/voucher_word/list',
    method: 'get',
    params: query
  })
}

// 查询凭证字详细
export function getVoucher_word(wordId) {
  return request({
    url: '/voucher/voucher_word/' + wordId,
    method: 'get'
  })
}

// 新增凭证字
export function addVoucher_word(data) {
  return request({
    url: '/voucher/voucher_word',
    method: 'post',
    data: data
  })
}

// 修改凭证字
export function updateVoucher_word(data) {
  return request({
    url: '/voucher/voucher_word',
    method: 'put',
    data: data
  })
}

// 删除凭证字
export function delVoucher_word(wordId) {
  return request({
    url: '/voucher/voucher_word/' + wordId,
    method: 'delete'
  })
}
